<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$dir=opendir('./');
while($file= readdir($dir)){
    if('.'==$file || '..'==$file){
        continue;
    }
    // controller
    $newfile= str_replace('.class', 'Controller', $file);
    // model
    //$newfile= str_replace('.class', '',$file);
    //echo $file,'==>',$newfile,'<br />';
    rename($file, $newfile);
}
echo 'finish';